module br_dest_gen(
  input [29:0] in,
  input [23:0] offset,
  output [29:0] out,
  output [31:0] ret_addr_32,
  output [29:0] pc8
);
wire [29:0] offset_ext;
assign offset_ext = {{6{offset[23]}}, offset};
assign ret_addr_32 = {in,2'b0} + 32'd4;
assign pc8 = in + 30'd2;
assign out = pc8 + offset_ext;
endmodule
